package rtk;

import java.io.Serializable;

/**
 * Created by Mr.Fan on 2017/5/30.
 */

public class RtkData implements Serializable {
    private int devicePower;
    private int bleRssi;
    private double longitude;
    private double latitude;
    private double altitude;
    private double speed;
    private double bearing;
    private double accuracy;
    private int uStates;
    private int mode;
    private String utcDate;

    public String getStringMode() {
        switch (mode) {
            case 0:
                return "未定位";
            case 1:
                return "单点定位";
            case 2:
                return "RTD";
            case 5:
                return "RTK 浮点解";
            case 4:
                return "RTK 固定解";
            case 6:
                return "惯导";
        }
        return "未知";
    }


    public int getDevicePower() {
        return devicePower;
    }

    public void setDevicePower(int devicePower) {
        this.devicePower = devicePower;
    }

    public int getBleRssi() {
        return bleRssi;
    }

    public void setBleRssi(int bleRssi) {
        this.bleRssi = bleRssi;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getAltitude() {
        return altitude;
    }

    public void setAltitude(double altitude) {
        this.altitude = altitude;
    }

    public double getSpeed() {
        return speed;
    }

    public void setSpeed(double speed) {
        this.speed = speed;
    }

    public double getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(double accuracy) {
        this.accuracy = accuracy;
    }

    public int getUStates() {
        return uStates;
    }

    public void setuStates(int uStates) {
        this.uStates = uStates;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public String getUtcDate() {
        return utcDate;
    }

    public void setUtcDate(String utcDate) {
        this.utcDate = utcDate;
    }


    public double getBearing() {
        return bearing;
    }

    public void setBearing(double bearing) {
        this.bearing = bearing;
    }
}
